package com.yn.iotxiao.sql.entity.Face;

import com.gitee.sunchenbin.mybatis.actable.annotation.*;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;

import java.util.Date;

@Data
@Table(name = "FaceInfo", comment = "人脸库")
public class FaceInfo {

    public FaceInfo(){
        super();
    }
    public FaceInfo(String uid, String name,String faceurl,String facepath) {
        this.uid = uid;
        this.name = name;
        this.faceurl = faceurl;
        this.facepath = facepath;
    }


    @IsKey
    private String uid;
    @Column
    private String name;
    @Column(comment = "人脸图片的网络地址")
    private String faceurl;
    @Column(comment = "人脸图片的本地路径")
    private String facepath;

    @Column(name = "CREATETIME",comment = "录入时间")
    @ColumnType(MySqlTypeConstant.TIMESTAMP)
    @DefaultValue("CURRENT_TIMESTAMP")
    private Date createTime;
}
